package model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "DichGia")
public class DichGia {
	private int id_DichGia;
	private String ten_DichGia;
	private String moTa_DichGia;

	public DichGia(String ten_DichGia) {
		this.ten_DichGia = ten_DichGia;
	}

	public DichGia() {

	}

	@Id
	@GeneratedValue(generator = "DichGia_ID_Gen", strategy = GenerationType.IDENTITY)
	@SequenceGenerator(name = "DichGia_ID_Gen", sequenceName = "NguoiDung_SEQ_ID")
	@Column(name = "ID_DichGia", unique = true, nullable = false)
	public int getId_DichGia() {
		return id_DichGia;
	}

	public void setId_DichGia(int id_DichGia) {
		this.id_DichGia = id_DichGia;
	}

	@Column(name = "TenDichGia", nullable = false)
	public String getTen_DichGia() {
		return ten_DichGia;
	}

	public void setTen_DichGia(String ten_DichGia) {
		this.ten_DichGia = ten_DichGia;
	}

	@Column(name = "MoTa_DichGia")
	public String getMoTa_DichGia() {
		return moTa_DichGia;
	}

	public void setMoTa_DichGia(String moTa_DichGia) {
		this.moTa_DichGia = moTa_DichGia;
	}

}
